import request from "./request.js";

const loadCategories = function(params={}){
    return request.get("categories",{
        params
    })
}

const loadCategoriesAttributes = function(cid="",sel="many"){
    return request.get(`categories/${cid}/attributes`,{
        params:{
            sel:sel
        }
    })
}

export default {
    loadCategories,loadCategoriesAttributes
}